﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AnguaRPGEngine.Library.Systems;

namespace AnguaRPGEngine.DND4eModule
{
    public enum QuestTypes
    {
        Minor,
        Major
    }
    public class Quest
    {
        public QuestTypes QuestType;
        public string Name;
        public string Description;
        public int ExperiencePoints;
        public Quest()
        {
        }
        public Quest(QuestTypes questType, string name, string description, int experiencePoints)
        {
            this.QuestType = questType;
            this.Name = name;
            this.Description = description;
            this.ExperiencePoints = experiencePoints;
        }
        public static ListView.ColumnHeaderCollection GetHeaders(ListView owner)
        {
            ListView.ColumnHeaderCollection columns = new ListView.ColumnHeaderCollection(owner);
            columns.Add("Name", 120);
            columns.Add("Type", 110);
            columns.Add("XP", 80);
            return columns;
        }
        public ListViewItem GetItem()
        {
            ListViewItem lvi = new ListViewItem(Name);
            lvi.SubItems.Add(Tools.ConvertEnumToString(QuestType.ToString()));
            lvi.SubItems.Add(ExperiencePoints.ToString());
            return lvi;
        }
    }
}
